<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta content="App Inventor for Android" name="description">
    <meta content="Android, Blocks App Inventor, Mobile, Phone, IDE" name="keywords">
    <title>
      Social Components - App Inventor for Android
    </title>
    <link href="../../../static/images/appinventor-16.png" rel="SHORTCUT ICON" type="image/ico">
    <link href="../../../static/images/appinventor-16.png" rel="icon" type="image/png">
    <link href="../../../static/css/appinventor.css" rel="stylesheet" type="text/css">
<!-- ADD Google Analytics here -->
<!-- END Google Analytics here -->
    <style type="text/css">
img.c3 {border-width:0}
    dt.c2 {font-style: italic}
    div.c1 {clear:both;}
    </style>
  </head>
  <body>
    <div id="aiac">
      <div class="main-container">
        <div class="header">
          <div class="header-title">
            <a href="../../../about/index.html"><img alt="" src="../../../static/images/appinventor_logo.gif"></a>
          </div>
            <div class="header-search">
<!-- ADD Google Custom Search -->
<!-- END Google Custom Search -->
              <div class="header-search-query">
              </div>
              <div class="header-search-button">
              </div>
            </div>
          <div class="header-login">
            <div class="header-login-greeting">
              Learn about App Inventor
            </div>
          </div>
        </div>
        <div class="customhr customhr-green"></div>
<!-- ADD Google Search Results -->
<!-- END Google Search Results -->
        <div id="navigation">
          <div id="navigation-links">
            <div class="navigation-link-option" id="navigation-link-home">
              <a href="../../../about/index.html">About</a>
            </div>
            <div class="navigation-link-option navigation-link-active" id="navigation-link-learn">
              <a href="../../../learn/index.html">Learn</a>
            </div>
            <div class="navigation-link-option" id="navigation-link-forum">
              <a href="../../../forum/index.html">Forum</a>
            </div>
            <div class="navigation-link-option" id="navigation-link-myappinventor">
              <a href="">My Projects</a><div>(coming soon)</div>
            </div>
          </div>
          <div id="navigation-breadcrumb">
            <a href="../../../learn/index.html">Learn</a> &gt; <a href="../../../learn/reference/index.html">Reference</a> &gt; Social &gt;
          </div>
          <div class="c1"></div>
        </div>
        <div class="customhr customhr-gray"></div>
        <div class="content">
          <div class="content-body">
            <div class="learn-page">
              <h1>
                Social Components
              </h1>
              <ul>
                <li>
                  <a href="#ContactPicker">ContactPicker</a>
                </li>
                <li>
                  <a href="#EmailPicker">EmailPicker</a>
                </li>
                <li>
                  <a href="#PhoneCall">PhoneCall</a>
                </li>
                <li>
                  <a href="#PhoneNumberPicker">PhoneNumberPicker</a>
                </li>
                <li>
                  <a href="#Texting">Texting</a>
                </li>
                <li>
                  <a href="#Twitter">Twitter</a>
                </li>
              </ul>
              <h2 id="ContactPicker">
                ContactPicker
              </h2><img alt="" src="images/contactpicker.png">
              <p>
                Use a contact picker component to let the user choose an entry from the Android contact list.
              </p>
              <p>
                A contact picker is a button that displays a list of contacts to choose from when the user taps it. After the user has made a selection, the following properties are set:
              </p>
              <ul>
                <li>
                  <code>ContactName</code>: contact's name.
                </li>
                <li>
                  <code>EmailAddress</code>: contact's primary email address.
                </li>
                <li>
                  <code>Picture</code>: name of the file containing the contact's image, which can be used as a <code>Picture</code> property value for the <code>Image</code> or <code>ImageSprite</code> component.
                </li>
              </ul>
              <p>
                Other properties affect the appearance of the button (including <code>TextAlignment</code> and <code>BackgroundColor</code>) and whether it can be tapped (<code>Enabled</code>).
              </p>
              <h3>
                Properties
              </h3>
              <dl>
                <dt>
                  <code>Enabled</code>
                </dt>
                <dd>
                  If set, user can tap contact picker to use it.
                </dd>
                <dt>
                  <code>Image</code>
                </dt>
                <dd>
                  Image to display on contact picker
                </dd>
                <dt>
                  <code>BackgroundColor</code>
                </dt>
                <dd>
                  Color for contact picker background.
                </dd>
                <dt class="c2">
                  <code>ContactName</code>
                </dt>
                <dd>
                  Name of selected contact.
                </dd>
                <dt class="c2">
                  <code>EmailAddress</code>
                </dt>
                <dd>
                  Primary email address of selected contact.
                </dd>
                <dt class="c2">
                  <code>Picture</code>
                </dt>
                <dd>
                  Picture of selected contact.
                </dd>
                <dt>
                  <code>FontBold</code>
                </dt>
                <dd>
                  If set, contact picker text is displayed in bold.
                </dd>
                <dt>
                  <code>FontItalic</code>
                </dt>
                <dd>
                  If set, contact picker text is displayed in italics.
                </dd>
                <dt>
                  <code>FontSize</code>
                </dt>
                <dd>
                  Point size for contact picker text.
                </dd>
                <dt>
                  <code>FontTypeface</code>
                </dt>
                <dd>
                  Font family for contact picker text.
                </dd>
                <dt>
                  <code>Text</code>
                </dt>
                <dd>
                  Text to display on contact picker.
                </dd>
                <dt>
                  <code>TextAlignment</code>
                </dt>
                <dd>
                  Left, center, or right.
                </dd>
                <dt>
                  <code>TextColor</code>
                </dt>
                <dd>
                  Color for contact picker text.
                </dd>
                <dt>
                  <code>Visible</code>
                </dt>
                <dd>
                  If set, contact picker is visible.
                </dd>
                <dt>
                  <code>Width</code>
                </dt>
                <dd>
                  Contact picker width (x-size).
                </dd>
                <dt>
                  <code>Height</code>
                </dt>
                <dd>
                  Contact picker height (y-size).
                </dd>
              </dl>
              <h3>
                Events
              </h3>
              <dl>
                <dt>
                  <code>AfterPicking()</code>
                </dt>
                <dd>
                  Called after user picks a contact.
                </dd>
                <dt>
                  <code>BeforePicking()</code>
                </dt>
                <dd>
                  Called after user taps contact picker but before contact list is displayed.
                </dd>
                <dt>
                  <code>GotFocus()</code>
                </dt>
                <dd>
                  Contact picker became the focused component.
                </dd>
                <dt>
                  <code>LostFocus()</code>
                </dt>
                <dd>
                  Contact picker stopped being the focused component.
                </dd>
              </dl>
              <h2 id="EmailPicker">
                EmailPicker
              </h2><img alt="" src="images/emailpicker.png">
              <p>
                Use an email picker component to let the user enter a user's email address from the Android contact list.
              </p>
              <p>
                An email picker is a text box in which a user can begin entering an email address of a contact and be offered auto-completion. The initial value of the box and the value after user entry is in the <code>Text</code> property. If the <code>Text</code> property is initially empty, the contents of the <code>Hint</code> property will be faintly shown in the text box as a hint to the user.
              </p>
              <p>
                Other properties affect the appearance of the email picker (including <code>TextAlignment</code> and <code>BackgroundColor</code>) and whether it can be used (<code>Enabled</code>).
              </p>
              <p>
                Email pickers are usually used with a button. The user taps the button when text entry is complete.
              </p>
              <h3>
                Properties
              </h3>
              <dl>
                <dt>
                  <code>Enabled</code>
                </dt>
                <dd>
                  If set, user can tap email picker to use it.
                </dd>
                <dt>
                  <code>BackgroundColor</code>
                </dt>
                <dd>
                  Color for email picker background.
                </dd>
                <dt>
                  <code>FontBold</code>
                </dt>
                <dd>
                  If set, email picker text is displayed in bold.
                </dd>
                <dt>
                  <code>FontItalic</code>
                </dt>
                <dd>
                  If set, email picker text is displayed in italics.
                </dd>
                <dt>
                  <code>FontSize</code>
                </dt>
                <dd>
                  Point size for email picker text.
                </dd>
                <dt>
                  <code>FontTypeface</code>
                </dt>
                <dd>
                  Font family for email picker text.
                </dd>
                <dt>
                  <code>Text</code>
                </dt>
                <dd>
                  Initial text to display in email picker.
                </dd>
                <dt>
                  <code>TextAlignment</code>
                </dt>
                <dd>
                  Left, center, or right.
                </dd>
                <dt>
                  <code>TextColor</code>
                </dt>
                <dd>
                  Color for email picker text.
                </dd>
                <dt>
                  <code>Hint</code>
                </dt>
                <dd>
                  If Text property is empty, Hint is shown in gray.
                </dd>
                <dt>
                  <code>Visible</code>
                </dt>
                <dd>
                  If set, email picker is visible.
                </dd>
                <dt>
                  <code>Width</code>
                </dt>
                <dd>
                  Email picker width (x-size).
                </dd>
                <dt>
                  <code>Height</code>
                </dt>
                <dd>
                  Email picker height (y-size).
                </dd>
              </dl>
              <h3>
                Events
              </h3>
              <dl>
                <dt>
                  <code>GotFocus()</code>
                </dt>
                <dd>
                  Email picker became the focused component.
                </dd>
                <dt>
                  <code>LostFocus()</code>
                </dt>
                <dd>
                  Email picker stopped being the focused component.
                </dd>
              </dl>
              <h2 id="PhoneCall">
                PhoneCall
              </h2><img alt="" src="images/phonecall.png">
              <p>
                Use this component to dial the phone and make a call.
              </p>
              <p>
                <code>PhoneCall</code> is a non-visible component that makes a phone call to the number specified in the <code>PhoneNumber</code> property, which can be set either in the Designer or Blocks Editor. You can use the <code>MakePhoneCall</code> method to make a phone call programatically from your app.
              </p>
              <p>
                This component is often used with the <code>ContactPicker</code> component, which lets the user select from the contacts stored on the phone and sets the <code>PhoneNumber</code> property to the contact's phone number.
              </p>
              <p>
                To directly specify the phone number, set the <code>PhoneNumber</code> property to a <code>Text</code> with the specified digits (for example, "6505551212"). The number can be formatted with hyphens, periods, and parentheses; they are ignored. You can't include spaces in the number.
              </p>
              <h3>
                Properties
              </h3>
              <dl>
                <dt>
                  <code>PhoneNumber</code>
                </dt>
                <dd>
                  Phone number to dial.
                </dd>
              </dl>
              <h3>
                Methods
              </h3>
              <dl>
                <dt>
                  <code>MakePhoneCall()</code>
                </dt>
                <dd>
                  Dials the number specified by the component's <code>PhoneNumber</code> property.
                </dd>
              </dl>
              <h2 id="PhoneNumberPicker">
                PhoneNumberPicker
              </h2><img alt="" src="images/phonenumberpicker.png">
              <p>
                Use this component to allow users to choose a phone number from a list of Android contacts' phone numbers.
              </p>
              <p>
                When the user taps a phone number picker button, it displays a list of the phone numbers of contacts to choose from. After the user has made a selection, the following properties will be set to information about the chosen contact:
              </p>
              <ul>
                <li>
                  <code>ContactName</code>: contact's name.
                </li>
                <li>
                  <code>PhoneNumber</code>: contact's selected phone number.
                </li>
                <li>
                  <code>EmailAddress</code>: contact's primary email address.
                </li>
                <li>
                  <code>Picture</code>: name of the file containing the contact's image, which can be used as a <code>Picture</code> property value for the <code>Image</code> or <code>ImageSprite</code> component.
                </li>
              </ul>
              <p>
                Other properties affect the appearance of the button (including <code>TextAlignment</code> and <code>BackgroundColor</code>) and whether it can be tapped (<code>Enabled</code>).
              </p>
              <h3>
                Properties
              </h3>
              <dl>
                <dt>
                  <code>Enabled</code>
                </dt>
                <dd>
                  If set, user can tap phone number picker to use it.
                </dd>
                <dt>
                  <code>Image</code>
                </dt>
                <dd>
                  Image to display on phone number picker.
                </dd>
                <dt>
                  <code>BackgroundColor</code>
                </dt>
                <dd>
                  Color for phone number picker background.
                </dd>
                <dt class="c2">
                  <code>ContactName</code>
                </dt>
                <dd>
                  Name of selected contact.
                </dd>
                <dt class="c2">
                  <code>EmailAddress</code>
                </dt>
                <dd>
                  Primary email address of selected contact.
                </dd>
                <dt class="c2">
                  <code>PhoneNumber</code>
                </dt>
                <dd>
                  Selected phone number of selected contact.
                </dd>
                <dt class="c2">
                  <code>Picture</code>
                </dt>
                <dd>
                  Picture of selected contact.
                </dd>
                <dt>
                  <code>FontBold</code>
                </dt>
                <dd>
                  If set, phone number picker text is displayed in bold.
                </dd>
                <dt>
                  <code>FontItalic</code>
                </dt>
                <dd>
                  If set, phone number picker text is displayed in italics.
                </dd>
                <dt>
                  <code>FontSize</code>
                </dt>
                <dd>
                  Point size for phone number picker text.
                </dd>
                <dt>
                  <code>FontTypeface</code>
                </dt>
                <dd>
                  Font family for phone number picker text.
                </dd>
                <dt>
                  <code>Text</code>
                </dt>
                <dd>
                  Text to display on phone number picker.
                </dd>
                <dt>
                  <code>TextAlignment</code>
                </dt>
                <dd>
                  Left, center, or right.
                </dd>
                <dt>
                  <code>TextColor</code>
                </dt>
                <dd>
                  Color for phone number picker text.
                </dd>
                <dt>
                  <code>Visible</code>
                </dt>
                <dd>
                  If set, phone number picker is visible.
                </dd>
                <dt>
                  <code>Width</code>
                </dt>
                <dd>
                  Phone number picker width (x-size).
                </dd>
                <dt>
                  <code>Height</code>
                </dt>
                <dd>
                  Phone number picker height (y-size).
                </dd>
              </dl>
              <h3>
                Events
              </h3>
              <dl>
                <dt>
                  <code>AfterPicking()</code>
                </dt>
                <dd>
                  Called after user picks a phone number.
                </dd>
                <dt>
                  <code>BeforePicking()</code>
                </dt>
                <dd>
                  Called after user taps phone number picker but before phone number list is displayed.
                </dd>
                <dt>
                  <code>GotFocus()</code>
                </dt>
                <dd>
                  Phone number picker became the focused component.
                </dd>
                <dt>
                  <code>LostFocus()</code>
                </dt>
                <dd>
                  Phone number picker stopped being the focused component.
                </dd>
              </dl>
              <h2 id="Texting">
                Texting
              </h2><img alt="" src="images/texting.png">
              <p>
                Use this non-visible component to allow users to send and receive text messages.
              </p>
              <p>
                When the <code>SendMessage</code> method is called, the texting component sends the text message specified in the <code>Message</code> property to the phone number specified in the <code>PhoneNumber</code> property. Texting components can receive text messages unless the <code>ReceivingEnabled</code> property is False. When a message arrives, the <code>MessageReceived</code> event is raised and provides the sending number and message.
              </p>This component is often used with the <code>ContactPicker</code> component, which lets the user select one of the contacts stored on the phone and sets the <code>PhoneNumber</code> property to the contact's phone number.
              <p>
                To directly specify the phone number, set the <code>PhoneNumber</code> property to a <code>Text</code> with the specified digits (for example, "6505551212"). The number can be formatted with hyphens, periods, and parentheses; they are ignored. You can't include spaces in the number.
              </p>
              <h3>
                Properties
              </h3>
              <dl>
                <dt>
                  <code>PhoneNumber</code>
                </dt>
                <dd>
                  Phone number that text will be sent to.
                </dd>
                <dt>
                  <code>Message</code>
                </dt>
                <dd>
                  Text of message that will be sent.
                </dd>
                <dt>
                  <code>ReceivingEnabled</code>
                </dt>
                <dd>
                  If set, this component can receive text messages.
                </dd>
              </dl>
              <h3>
                Events
              </h3>
              <dl>
                <dt>
                  <code>MessageReceived(text number, text messageText)</code>
                </dt>
                <dd>
                  Text message was received, with given text and from given number.
                </dd>
              </dl>
              <h3>
                Methods
              </h3>
              <dl>
                <dt>
                  <code>SendMessage()</code>
                </dt>
                <dd>
                  Sends the text specified by <code>Message</code> to the number given in <code>PhoneNumber</code>.
                </dd>
              </dl>
              <h2 id="Twitter">
                Twitter
              </h2><img alt="" src="images/twitter.png">
              <p>
                This component allows users to interact with Twitter.
              </p>
              <p>
                This non-visible component enables communication with Twitter. Methods are included to enable searching (<code>SearchTwitter</code>) and logging in to Twitter (<code>Authorize</code>). Once a user has logged in and the login has been confirmed successful by the <code>IsAuthorized</code> event, you can use the following methods:
              </p>
              <ul>
                <li>Set the status of the logged-in user (<code>SetStatus</code>).
                </li>
                <li>Send a direct message to a specific user (<code>DirectMessage</code>).
                </li>
                <li>Receive the most recent direct messages (<code>RequestDirectMessages</code>).
                </li>
                <li>Follow a user (<code>Follow</code>).
                </li>
                <li>Unfollow a user (<code>StopFollowing</code>.)
                </li>
                <li>Get the list of users who follow the logged-in user (<code>RequestFollowers</code>).
                </li>
                <li>Get the most recent messages of followed users (<code>RequestFriendTimeline</code>).
                </li>
                <li>Get the most recent mentions of the logged-in user (<code>RequestMentions</code>).
                </li>
              </ul>
              <p>
                In general, you invoke one of these methods and the result will bcome available when the corresponding recipt event is signalled. For example, if you call <code>RequestFollowers</code>, then the <code>FollowersReceived</code> event will be signalled when the list of followers is available. This might take time, because the request is going over the web; the result might even never become available, for example, if your device is not connected to the web or the Twitter web site is down.
              </p>
              <p>
                Login is handled using the OAuth protocol, as required by the Twitter API (<a href="http://dev.twitter.com/pages/auth">dev.twitter.com/pages/auth</a>). An App Inventor app that needs to make Twitter API calls on behalf of an authenticated user should first call <code>Authorize</code>. This causes a Twitter login page to be presented that will allow the user to login with their username and password if necessary, and then return appropriate credentials to the Twitter component in the app. Once the Twitter component has the credentials the <code>IsAuthorized</code> event is raised to let the app know that it can proceed with Twitter API calls. The only Twitter component method that does not require the user to be authenticated is <code>SearchTwitter</code>. An app retains Twitter credentials across invocations, so it may not be necessary for the user to login each time he or she uses the app. Reinstalling an app will clear the credentials, as will calling the <code>DeAuthorize</code> method. A user can revoke authorization for an app from the Twitter web site via the <i>Settings</i> page as well. To check whether an app already has valid credentials, use the <code>CheckAuthorized</code> method.
              </p>
              <p>
                <b>Important:</b> Most of the operation of the OAuth protocol is hidden inside the Twitter component and you do not need to understand how it works in order to use the component. However, it is necessary for anyone building an app with the Twitter component to supply a <i>Consumer key</i> and a <i>Consumer secret</i> as properties of the component. These are text strings specific to your app that you can obtain by registering the app with Twitter at <a href="http://twitter.com/oauth_clients/new">twitter.com/oauth_clients/new</a>. On the registration page you will need to supply the following information:
              </p>
              <dl>
                <dt>
                  Application name
                </dt>
                <dd>
                  A unique name for your application. When you submit the form It will warn you if the name isn't unique. This name will be shown to the user of your app when they are asked to login to Twitter as a result of the app calling the <code>Authorize</code> method.
                </dd>
                <dt>
                  Description
                </dt>
                <dd>
                  A description of your app.
                </dd>
                <dt>
                  Application website
                </dt>
                <dd>
                  The website where a user can go to find out more about your app or download it, if there is one. Otherwise, you could give your home web site, or another web site. The field cannot be left blank.
                </dd>
                <dt>
                  Application type
                </dt>
                <dd>
                  This should be set to <i>Browser</i>.
                </dd>
                <dt>
                  Callback URL
                </dt>
                <dd>
                  A valid URL. The value doesn't matter since the Twitter component will set it to the proper value.
                </dd>
                <dt>
                  Default access type
                </dt>
                <dd>
                  Set this to <i>read/write</i>
                </dd>
                <dt>
                  The other fields can be left blank if you like. When you have successfully registered your app you'll see a page that displays Consumer key and Consumer secret text strings that are specific to the registered app. You can copy these into the corresponding Twitter component properties in your App Inventor app. If you want to change the settings for your app at a later time, login to Twitter via a web browser and go to <a href="http://twitter.com/apps">twitter.com/apps</a> to see and modify your registered apps.
                </dt>
                <dd>
                  <h3>
                    Properties
                  </h3>
                  <dl>
                    <dt class="c2">
                      <code>ConsumerKey</code>
                    </dt>
                    <dd>
                      The consumer key identifying this app, obtained from <a href="http://twitter.com/oauth_clients/new">twitter.com/oauth_clients/new</a> as described above.
                    </dd>
                    <dt class="c2">
                      <code>ConsumerSecret</code>
                    </dt>
                    <dd>
                      The consumer secret identifying this app, obtained from <a href="http://twitter.com/oauth_clients/new">twitter.com/oauth_clients/new</a> as described above.
                    </dd>
                    <dt class="c2">
                      <code>DirectMessages</code>
                    </dt>
                    <dd>
                      User's direct messages on Twitter.
                    </dd>
                    <dt class="c2">
                      <code>Followers</code>
                    </dt>
                    <dd>
                      User's list of Twitter followers.
                    </dd>
                    <dt class="c2">
                      <code>FriendTimeline</code>
                    </dt>
                    <dd>
                      User's Twitter message timeline.
                    </dd>
                    <dt class="c2">
                      <code>Mentions</code>
                    </dt>
                    <dd>
                      List of messages that mention the user.
                    </dd>
                    <dt class="c2">
                      <code>SearchResults</code>
                    </dt>
                    <dd>
                      Results of Twitter search query.
                    </dd>
                    <dt class="c2">
                      <code>Username</code>
                    </dt>
                    <dd>
                      The user name of the authorized user. Empty if there is no authorized user.
                    </dd>
                  </dl>
                  <h3>
                    Events
                  </h3>
                  <dl>
                    <dt>
                      <code>DirectMessagesReceived(list messages)</code>
                    </dt>
                    <dd>
                      Called when all the direct messages requested with <code>RequestDirectMessages</code> have been retrieved.
                    </dd>
                    <dt>
                      <code>FollowersReceived(list followers)</code>
                    </dt>
                    <dd>
                      Called when all the followers requested with <code>RequestFollowers</code> have been retrieved.
                    </dd>
                    <dt>
                      <code>FriendTimelineReceived(list user-messages-list)</code>
                    </dt>
                    <dd>
                      Called when the timeline requested with <code>RequestFriendTimeline</code> has been retrieved. Each element is itself a list whose first element is a username and whose second element is a status tweeted by that user.
                    </dd>
                    <dt>
                      <code>IsAuthorized()</code>
                    </dt>
                    <dd>
                      Called after the program calls <code>Authorize</code> if the authorization was successful. It is also called after a call to <code>CheckAuthorized</code> if we already have a valid credentials. After this event has been raised, any other method for this component can be called.
                    </dd>
                    <dt>
                      <code>MentionsReceived(list mentions)</code>
                    </dt>
                    <dd>
                      Called when all the mentions requested with <code>RequestMentions</code> has been retrieved.
                    </dd>
                    <dt>
                      <code>SearchSuccessful(list searchResults)</code>
                    </dt>
                    <dd>
                      Called when the search requested with <code>SearchTwitter</code> has been completed.
                    </dd>
                  </dl>
                  <h3>
                    Methods
                  </h3>
                  <dl>
                    <dt>
                      <code>Authorize</code>
                    </dt>
                    <dd>
                      Presents a Twitter login page so that the user can authorize access. IsAuthorize will be called when the user successfully grants access to the app.
                    </dd>
                    <dt>
                      <code>CheckAuthorized</code>
                    </dt>
                    <dd>
                      Checks whether we already have access, and if so, causes IsAuthorized event handler to be called.
                    </dd>
                    <dt>
                      <code>DeAuthorize</code>
                    </dt>
                    <dd>
                      Removes authorization from this running app instance. A user will have to login again to use any Twitter method other than <code>SearchTwitter</code>.
                    </dd>
                    <dt>
                      <code>DirectMessage(text user, text message)</code>
                    </dt>
                    <dd>
                      Sends the specified message to the given user.
                    </dd>
                    <dt>
                      <code>Follow(text user)</code>
                    </dt>
                    <dd>
                      Start following the given user.
                    </dd>
                    <dt>
                      <code>RequestDirectMessages()</code>
                    </dt>
                    <dd>
                      Retrieves the most recent direct messages.
                    </dd>
                    <dt>
                      <code>RequestFollowers()</code>
                    </dt>
                    <dd>
                      Retrieves the list of the user's followers.
                    </dd>
                    <dt>
                      <code>RequestFriendTimeline()</code>
                    </dt>
                    <dd>
                      Retrieves the 20 most recent messages in your timeline. Returns a list of tuples (sub-lists), where each tuple contains username and status message.
                    </dd>
                    <dt>
                      <code>RequestMentions()</code>
                    </dt>
                    <dd>
                      Retrieves the most mentions of the user.
                    </dd>
                    <dt>
                      <code>SearchTwitter(text query)</code>
                    </dt>
                    <dd>
                      Searches Twitter for the given text.
                    </dd>
                    <dt>
                      <code>SetStatus(text s)</code>
                    </dt>
                    <dd>
                      Post the specified text as a status message.
                    </dd>
                    <dt>
                      <code>StopFollowing(text user)</code>
                    </dt>
                    <dd>
                      Stop following the given user.
                    </dd>
                  </dl>
                </dd>
              </dl>
            </div>
          </div>
        </div>
        <div class="footer">
          <div class="footer-legal">
            <p>
              <a href="http://creativecommons.org/licenses/by/3.0/" rel="license"><img alt="Creative Commons License" class="c3" src="http://i.creativecommons.org/l/by/3.0/88x31.png"></a><br>
              This work is licensed under a <a href="http://creativecommons.org/licenses/by/3.0/" rel="license">Creative Commons Attribution 3.0 Unported License</a> .
            </p>
            <p>
              The original work by Google has been modified<br>
              <!-- The modified work was translated from English to [language]<br> -->
              <a href="../../../about/index.html">About</a> | <a href="../../../about/privacy.html">Privacy</a> | <a href="../../../about/termsofservice.html">Terms</a>
            </p>
          </div>
          <div class="footer-lastupdate">
            <script type="text/javascript">
if (document.lastModified != '') {
                var m = "Page last updated: " + document.lastModified;
                var p = m.length-8;
                document.writeln("<center>");
                document.write(m.substring(p, 0));
                document.writeln("<\/center>");
              }
            </script>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
